3.26.100 \(\int \frac {x^{-1+2 n}}{a+b x^n} \, dx\) [2600]

Optimal. Leaf size=28 \[ \frac {x^n}{b n}-\frac {a \log \left (a+b x^n\right )}{b^2 n} \]

[Out]

x^n/b/n-a*ln(a+b*x^n)/b^2/n

________________________________________________________________________________________

Rubi [A]
time = 0.01, antiderivative size = 28, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.118, Rules used = {272, 45} \begin {gather*} \frac {x^n}{b n}-\frac {a \log \left (a+b x^n\right )}{b^2 n} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[x^(-1 + 2*n)/(a + b*x^n),x]

[Out]

x^n/(b*n) - (a*Log[a + b*x^n])/(b^2*n)

Rule 45

Int[((a_.) + (b_.)*(x_))^(m_.)*((c_.) + (d_.)*(x_))^(n_.), x_Symbol] :> Int[ExpandIntegrand[(a + b*x)^m*(c + d
*x)^n, x], x] /; FreeQ[{a, b, c, d, n}, x] && NeQ[b*c - a*d, 0] && IGtQ[m, 0] && ( !IntegerQ[n] || (EqQ[c, 0]
&& LeQ[7*m + 4*n + 4, 0]) || LtQ[9*m + 5*(n + 1), 0] || GtQ[m + n + 2, 0])

Rule 272

Int[(x_)^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Dist[1/n, Subst[Int[x^(Simplify[(m + 1)/n] - 1)*(a
+ b*x)^p, x], x, x^n], x] /; FreeQ[{a, b, m, n, p}, x] && IntegerQ[Simplify[(m + 1)/n]]

Rubi steps

\begin {align*} \int \frac {x^{-1+2 n}}{a+b x^n} \, dx &=\frac {\text {Subst}\left (\int \frac {x}{a+b x} \, dx,x,x^n\right )}{n}\\ &=\frac {\text {Subst}\left (\int \left (\frac {1}{b}-\frac {a}{b (a+b x)}\right ) \, dx,x,x^n\right )}{n}\\ &=\frac {x^n}{b n}-\frac {a \log \left (a+b x^n\right )}{b^2 n}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.03, size = 27, normalized size = 0.96 \begin {gather*} \frac {b x^n-a \log \left (b n \left (a+b x^n\right )\right )}{b^2 n} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[x^(-1 + 2*n)/(a + b*x^n),x]

[Out]

(b*x^n - a*Log[b*n*(a + b*x^n)])/(b^2*n)

________________________________________________________________________________________

Maple [A]
time = 0.24, size = 31, normalized size = 1.11

method result size
risch \(\frac {x^{n}}{b n}-\frac {a \ln \left (x^{n}+\frac {a}{b}\right )}{b^{2} n}\) \(31\)
norman \(\frac {{\mathrm e}^{n \ln \left (x \right )}}{b n}-\frac {a \ln \left (a +b \,{\mathrm e}^{n \ln \left (x \right )}\right )}{b^{2} n}\) \(33\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^(-1+2*n)/(a+b*x^n),x,method=_RETURNVERBOSE)

[Out]

x^n/b/n-a/b^2/n*ln(x^n+a/b)

________________________________________________________________________________________

Maxima [A]
time = 0.31, size = 32, normalized size = 1.14 \begin {gather*} \frac {x^{n}}{b n} - \frac {a \log \left (\frac {b x^{n} + a}{b}\right )}{b^{2} n} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^(-1+2*n)/(a+b*x^n),x, algorithm="maxima")

[Out]

x^n/(b*n) - a*log((b*x^n + a)/b)/(b^2*n)

________________________________________________________________________________________

Fricas [A]
time = 0.43, size = 24, normalized size = 0.86 \begin {gather*} \frac {b x^{n} - a \log \left (b x^{n} + a\right )}{b^{2} n} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^(-1+2*n)/(a+b*x^n),x, algorithm="fricas")

[Out]

(b*x^n - a*log(b*x^n + a))/(b^2*n)

________________________________________________________________________________________

Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 41 vs. \(2 (20) = 40\).
time = 4.59, size = 41, normalized size = 1.46 \begin {gather*} \begin {cases} \frac {\log {\left (x \right )}}{a} & \text {for}\: b = 0 \wedge n = 0 \\\frac {x^{2 n}}{2 a n} & \text {for}\: b = 0 \\\frac {\log {\left (x \right )}}{a + b} & \text {for}\: n = 0 \\- \frac {a \log {\left (\frac {a}{b} + x^{n} \right )}}{b^{2} n} + \frac {x^{n}}{b n} & \text {otherwise} \end {cases} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x**(-1+2*n)/(a+b*x**n),x)

[Out]

Piecewise((log(x)/a, Eq(b, 0) & Eq(n, 0)), (x**(2*n)/(2*a*n), Eq(b, 0)), (log(x)/(a + b), Eq(n, 0)), (-a*log(a
/b + x**n)/(b**2*n) + x**n/(b*n), True))

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^(-1+2*n)/(a+b*x^n),x, algorithm="giac")

[Out]

integrate(x^(2*n - 1)/(b*x^n + a), x)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.04 \begin {gather*} \int \frac {x^{2\,n-1}}{a+b\,x^n} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^(2*n - 1)/(a + b*x^n),x)

[Out]

int(x^(2*n - 1)/(a + b*x^n), x)

________________________________________________________________________________________